import request from "@/utils/request";
/**
 * 查询按钮分页数据
 */
export function selectPage(params) {
    return request({
        url: "/api/button/selectPage",
        method: "get",
        params,
    });
}
/**
 * 新增按钮
 */
export function addButton(data) {
    return request({
        url: "/api/button/insert",
        method: "post",
        data,
    });
}
/**
 * 删除按钮
 */
export function deleteButton(params) {
    return request({
        url: "/api/button/delete",
        method: "delete",
        params,
    });
}
/**
 * 更新按钮
 */
export function updateButton(data) {
    return request({
        url: "/api/button/update",
        method: "put",
        data,
    });
}
/**
 * 查询全部
 */
export function selectAll() {
    return request({
        url: "/api/button/selectAll",
        method: "get",
    });
}
